package org.gp953.order.service;

import org.gp953.basic.service.IBaseService;
import org.gp953.basic.util.PageList;
import org.gp953.order.domain.AdoptOrder;
import org.gp953.order.domain.ProductOrder;
import org.gp953.order.query.ProductOrderQuery;
import org.gp953.user.domain.LoginInfo;
import org.gp953.user.domain.User;

import java.util.Map;

public interface IProductOrderService extends IBaseService<ProductOrder> {

    String submit(Map<String, Object> params, LoginInfo loginInfo);

    ProductOrder queryByUnionPaySn(String unionPaySn);


    /**
     * 修改服务订单订单状态
     * 修改支付单状态
     * @param orderId*/
    void cancelOrder(Long orderId);

    PageList<ProductOrder> admin(ProductOrderQuery query, LoginInfo loginInfo);

    PageList<ProductOrder> user(ProductOrderQuery query, LoginInfo loginInfo);

    void deleteQuartzJobByOrderId(Long productOrderId);

}
